package org.jeecg.modules.zcgl.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.zcgl.entity.AssetFixedLog;
import org.jeecg.modules.zcgl.vo.statistical.AssetBorrowVo;
import org.jeecg.modules.zcgl.vo.statistical.AssetReturnVo;

/**
 * @Description: 固定资产记录
 * @Author: jeecg-boot
 * @Date: 2021-07-02
 * @Version: V1.0
 */
public interface AssetFixedLogMapper extends BaseMapper<AssetFixedLog> {
    /**
     * 固定资产借用
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<AssetBorrowVo> queryAssetFixedBorrowPageList(Page<AssetBorrowVo> page, @Param("ew") QueryWrapper<AssetBorrowVo> queryWrapper);

    /**
     * 固定资产归还
     *
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<AssetReturnVo> queryAssetFixedReturnPageList(Page<AssetReturnVo> page, @Param("ew") QueryWrapper<AssetReturnVo> queryWrapper);

}
